#ifndef FILEWORKER_H
#define FILEWORKER_H

#include <QObject>
#include <QString>

class FileWorker : public QObject
{
    Q_OBJECT
public:
    explicit FileWorker(const QString &path, QObject *parent = nullptr);

public slots:
    void startWork();

signals:
    void progress(int value);
    void finished();
    void errorOccurred(const QString &msg);

private:
    QString m_filePath;
};

#endif // FILEWORKER_H
